package com.qf.interceptors;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 2019/10/11
 * Administrator
 * springboot1010
 * 面向对象面向君  不负代码不负卿
 */
@Configuration
public class InterceptorConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MyInter1())
                .addPathPatterns("/*")
                .excludePathPatterns("/insert");//排除某些请求
        super.addInterceptors(registry);
    }
}
